how to create a port scanner